package com.impc.controller;

import com.impc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping(value="/findById")
    public ModelAndView findById(@RequestParam("userId") Long userId, Model model){
        //model.addAttribute("user",userService.selectByPrimaryKey(userId));

        return new ModelAndView("user/user");
    }
}
